package cn.melon.view.control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
/**
 * @ClassName: CloseWindowEventListener
 * @author Hzy
 * 关闭窗口事件
 */
public class CloseWindowEventListener implements ActionListener{
	private JFrame window;
	public CloseWindowEventListener(JFrame window){
		this.window = window;
	}
	@Override
	public void actionPerformed(ActionEvent e){
	    System.exit(0);
//		window.dispose();
	}
}
